package com.bookpavilion.search.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
@Data
@Document(indexName = "bookpavilion",type = "goods")
public class Goods implements Serializable {
    @Id
    private String id;
    @Field(index = true,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String goodsname;//二手书名字
    @Field(index = true,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String small_pic;//图书图片

    private Double old_price;//图书原价

    private Double sale_price;//图书销售价

    private String introduction;//图书简介

    private String category_id;// 图书分类

    private Integer status;//商品状态 1有效 0无效
}
